const crypto = require('crypto');
let obj = crypto.createHash('md5');
let obj1 = crypto.createHash('sha1');
obj.update('123456');
obj1.update('123456');


console.log(obj.digest('hex'));
console.log(obj1.digest('hex'));